/******/ (function(modules) { // webpackBootstrap
/******/ 	// The module cache
/******/ 	var installedModules = {};

/******/ 	// The require function
/******/ 	function __webpack_require__(moduleId) {

/******/ 		// Check if module is in cache
/******/ 		if(installedModules[moduleId])
/******/ 			return installedModules[moduleId].exports;

/******/ 		// Create a new module (and put it into the cache)
/******/ 		var module = installedModules[moduleId] = {
/******/ 			exports: {},
/******/ 			id: moduleId,
/******/ 			loaded: false
/******/ 		};

/******/ 		// Execute the module function
/******/ 		modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);

/******/ 		// Flag the module as loaded
/******/ 		module.loaded = true;

/******/ 		// Return the exports of the module
/******/ 		return module.exports;
/******/ 	}


/******/ 	// expose the modules object (__webpack_modules__)
/******/ 	__webpack_require__.m = modules;

/******/ 	// expose the module cache
/******/ 	__webpack_require__.c = installedModules;

/******/ 	// __webpack_public_path__
/******/ 	__webpack_require__.p = "";

/******/ 	// Load entry module and return exports
/******/ 	return __webpack_require__(0);
/******/ })
/************************************************************************/
/******/ ([
/* 0 */
/***/ function(module, exports, __webpack_require__) {

	var Fullpage = __webpack_require__(1);


	Fullpage();

/***/ },
/* 1 */
/***/ function(module, exports) {

	var PageHelper = (() => {
	    var body = document.body,
	        clientHeight = document.documentElement.clientHeight,
	        start, during;

	    return {
	        canScroll: true,
	        next: next,
	        prev: prev
	    };
	    function getPage() {
	        start = body.scrollTop;
	        return start / clientHeight;
	    }
	    function next() {
	        if (start > 0) {
	            during = (getPage() + 1) * clientHeight;
	            window.requestAnimationFrame(update);
	            console.log('next', start, during);
	        }
	    }
	    function prev() {
	        if (start) {
	            during = (getPage() - 1) * clientHeight;
	            window.requestAnimationFrame(update);
	            console.log('prev', start, during);
	        }
	    }


	    function update(timestamp) {
	        // console.log(timestamp);
	        if (body.scrollTop < during) {
	            body.scrollTop++;
	            requestAnimationFrame(update);
	        } else if (body.scrollTop > during) {
	            body.scrollTop--;
	            window.requestAnimationFrame(update);
	        } else {
	            console.log('end');
	            PageHelper.canScroll = true;
	        }
	        // PageHelper.canScroll = true;
	    }
	})();



	module.exports = function () {
	    document.addEventListener('mousewheel', function (e) {

	        e.preventDefault();


	        if (e.deltaY > 0) {
	            console.log('up');
	        }
	        if (e.deltaY < 0) {
	            console.log('bottom');
	        }


	        // if (PageHelper.canScroll) {
	        //     PageHelper.canScroll = false;
	        //     if (e.deltaY > 0) {
	        //         PageHelper.next();
	        //     } else {
	        //         PageHelper.prev();
	        //     }
	        // } else {
	        //     e.preventDefault();
	        // }

	        // console.log(e, e.deltaY);
	    });
	}   

/***/ }
/******/ ]);